package com.wits.platform.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import net.sf.json.JSONObject;



@Entity
@Table(name="wits_systab_h")
public class SysTabH extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6212888442885402401L;
	
	public SysTabH(){
		
	}

	/**
	 * 对照表代码
	 */
	private String thId;
	
	/**
	 * 对照表名称
	 */
	private String thName;
	
	/**
	 * 对照码长度
	 */
	private Integer thWidth;
	
	/**
	 * 是否启用
	 */
	private String isEnable;


	@Id
	@Column(name="th_id",length=36)
	public String getThId() {
		return thId;
	}


	public void setThId(String thId) {
		this.thId = thId;
	}

	@Column(name="th_name",length=20)
	public String getThName() {
		return thName;
	}


	public void setThName(String thName) {
		this.thName = thName;
	}

	@Column(name="th_width")
	public Integer getThWidth() {
		return thWidth;
	}


	public void setThWidth(Integer thWidth) {
		this.thWidth = thWidth;
	}

	@Column(name="is_enable",length=1)
	public String getIsEnable() {
		return isEnable;
	}


	public void setIsEnable(String isEnable) {
		this.isEnable = isEnable;
	}
	
	@Override
	public String toString() {
		return JSONObject.fromObject(this,getBaseJsonConfig()).toString();
	}


	@Override
	public String display() {
		// TODO Auto-generated method stub
		return null;
	}

}
